package PangModel;

import java.awt.*;

/**
 * Created by YILMAZ on 23/4/2015.
 */
public class Barrier extends GameObject {
    int roughness;
    public static final int SCORE = 50;
    private boolean destructible;

    public Barrier(){
        super();
    }

    public Barrier(int width, int height)
    {
        this.width = width;
        this.height = height;
    }

    @Override
    public void draw(Graphics graph)
    {
        double x = coordinates.getX();
        double y = coordinates. getY();
        graph.setColor(Color.YELLOW); // :O
        graph.drawRect((int)x, (int)y, (int)width,(int) height);
        //graph.drawImage(ImageStore.getImage(ImageID),x,y); //or something, decide when view is done
    }

    public int getRoughness(int roughness) {
        return roughness;
    }
    public void setRoughness (int roguhness)
    {
        this.roughness= roughness;
    }

    public void move()
    {

    }

    public boolean isDestructible() {
        return destructible;
    }

    public int getRoughness() {
        return roughness;
    }

    public void decrementRoughness()
    {
        if (roughness > 2)
            roughness--;

    }
}
